package zj.service.modules.sign.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 特殊上下班时间
 *
 * @author xi.yang
 * @create 2018-08-27 21:16
 **/
@Document(collection = "t_sp_day_time")
public class SpDayTime implements Serializable {
    @Id
    private String id;
    /**
     * 说明原因
     */
    private String desc;
    private Date date;
    /**
     * 指定特殊上班时间
     */
    private Date start;
    /**
     * 指定特殊下班时间
     */
    private Date end;

    public SpDayTime() {
    }

    public SpDayTime(String desc, Date date, Date start, Date end) {
        this.desc = desc;
        this.date = date;
        this.start = start;
        this.end = end;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getStart() {
        return start;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getEnd() {
        return end;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setEnd(Date end) {
        this.end = end;
    }
}
